package com.hxrfid.project.domain.bo;

import com.hxrfid.common.core.validate.AddGroup;
import com.hxrfid.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.hxrfid.common.core.domain.BaseEntity;

/**
 * 卡片管理业务对象 bs_card
 *
 * @author hxrfid
 * @date 2025-06-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsCardBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 卡片名称
     */
    @NotBlank(message = "卡片名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardName;

    /**
     * 卡片价格
     */
    @NotNull(message = "卡片价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal cardPrice;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
